# -*- coding: utf-8 -*-
from __future__ import division
from __future__ import print_function

from ..base import OpsFeature

from .close import Close
from .high import High
from .low import Low

class TP(OpsFeature):
    """Technical Indicator - TP

    - TP = (CLOSE + HIGH + LOW) / 3

    """
    def _load_internal(self, instrument, start_time, end_time, freq):
        tp = (Close() + High() + Low()) / 3
        return tp.load(instrument, start_time, end_time, freq)
